home *** CD-ROM | disk | FTP | other *** search
- property meSprite, onLoc, offLoc, onOff
-
- on beginSprite me
- meSprite = sprite(me.spriteNum)
- onLoc = meSprite.loc
- offLoc = point(400, 2000)
- meSprite.loc = offLoc
- onOff = 0
- end
-
- on exitFrame me
- if onOff = 0 then
- if random(30) = 1 then
- onOff = 1
- meSprite.loc = onLoc
- updateStage()
- end if
- else
- if random(2) = 1 then
- onOff = 0
- meSprite.loc = offLoc
- updateStage()
- end if
- end if
- end
-